import request from '@/utils/request'
export const sendEmployees = function(pages) {
  return request.get('/sys/user', { params: pages })
}
export const deleteEmployee = function(id) {
  return request.delete('/sys/user/' + id)
}
export const sendAdd = function(form) {
  return request.post('/sys/user', form)
}
export const getUser = function(id) {
  return request.get('/sys/user/' + id)
}
export const sendUpdate = function(data) {
  return request.put('/sys/user/' + data.id, data)
}
